package cn.edu.scau.cmi.suyaoxing.hibernate.domain;
import java.util.HashSet;
import java.util.Set;
public class Teacher {
	private long id;
	private String name;
	private Set<Student> students=new HashSet<Student>();
	public Teacher(long id,String name) {
		this.id=id;
		this.name=name;
	}
	public Teacher() {
		
	}
	public void setId(long id) {
		this.id=id;
	}
	public long getId() {
		return this.id;
	}
	public void setName(String name) {
		this.name=name;
	}
	public String getName() {
		return this.name;
	}
	public Set<Student> getStudents(){
		return this.students;
	}
	public void setStudents(Set<Student> students) {
		this.students=students;
	}
	public String toString() {
		return "teacher_id: "+this.id+"  teacher_name: "+this.name;
	}
}
